package day4;
import java.util.Scanner;
public class D4_3 {
    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        System.out.println("请输入顾客类型：(会员为1，非会员为0)");
        int typle=a.nextInt();
        System.out.println("请输入购物金额：");
        int shopmony=a.nextInt();
        double finalshopmony=0;
        if (typle==0){
            if (shopmony>=100){
                finalshopmony=0.9*shopmony;
            }
            else{
                    finalshopmony=shopmony;
            }
        }
        if (typle==1){
            if (shopmony<200){
                finalshopmony=shopmony*0.8;
            }
            if (shopmony>=200){
                finalshopmony=shopmony*0.75;
            }
        }
        System.out.println("您应付的金额为："+finalshopmony);
    }
}
